class ChangeProductsPricesNotNull < ActiveRecord::Migration
  def up
    change_column :products, :price, :integer, :default => 0, :null => false
    change_column :products, :actual_price, :integer, :default => 0, :null => false
    change_column :products, :sale_price, :integer, :default => 0, :null => false
  end

  def down
    change_column :products, :price, :decimal
    change_column :products, :actual_price, :decimal
    change_column :products, :sale_price, :decimal
  end
end
